import request from '@/utils/request'

//医生查询
export function getDoctor(query) {
  return request({
    url: 'http://localhost:8080/dzmhisdoctor/list',
    method: 'GET',
    params:query
  })
}

//医生修改前单查
export function selectDoctorId(id) {
  return request({
    url: 'http://localhost:8080/dzmhisdoctor/selectDoctorId/'+ id,
    method: 'GET',
  })
}
//修改医生信息
export function updateDoctor(data) {
  return request({
    url: 'http://localhost:8080/dzmhisdoctor/updateDoctor',
    method: 'POST',
    data:data
  })
}
//重置密码
export function updatePwd(uid) {
  return request({
    url: 'http://localhost:8080/dzm/his/member/updatePwd/'+uid,
    method: 'POST'
  })
}
//禁用医生登录
export function jinyong(uid) {
  return request({
    url: 'http://localhost:8080/dzm/his/member/jinyong/'+uid,
    method: 'POST'
  })
}
//启用医生登录
export function qiyong(uid) {
  return request({
    url: 'http://localhost:8080/dzm/his/member/qiyong/'+uid,
    method: 'POST'
  })
}

//添加医生信息
export function addDoctor(data) {
  return request({
    url: 'http://localhost:8080/dzmhisdoctor/addDoctor',
    method: 'POST',
    data:data
  })
}


//医生个人资料查询
export function selectByUid(uid) {
  return request({
    url: 'http://localhost:8080/dzmhisdoctor/selectByUid/'+ uid,
    method: 'GET',
  })
}
